package com.cold.demo.template.pojo;

import lombok.Getter;

@Getter
public enum StatusCode {
    SUCCESS(200, ""),
    PARAMETER_ERROR(400, "参数错误"),
    NOT_FIND_INPUT_STREAM(401, "未发现上传的文件流"),
    INPUT_STREAM_TOO_MUCH(402, "上传的文件数量超出限制"),
    ERROR(500, "服务异常");

    private int code;
    private String msg;

    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
